<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2019/1/21
 * Time: 10:23
 */

namespace app\modules\delegation;


class TeamLead
{
    private $_juniorDeveloper;

    public function __construct(JuniorDeveloper $juniorDeveloper)
    {
        $this->_juniorDeveloper = $juniorDeveloper;
    }

    public function writeCode(): string
    {
        return $this->_juniorDeveloper->writeBadCode();
    }
}